package com.htzz.collection.service.impl;

import com.htzz.collection.bean.KInfoEntity;
import com.htzz.collection.dao.KInfoDao;
import com.htzz.collection.service.KInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service("kInfoService")
public class KInfoServiceImpl implements KInfoService {

    @Autowired
    KInfoDao kInfoDao;

    @Override
    public void save(KInfoEntity k)  throws Exception {
        //保存采集点
        kInfoDao.insert(k);
    }

    @Override
    public List<KInfoEntity> selectByDevId(String devId)  throws Exception {
        return kInfoDao.selectByDevId(devId);
    }
}
